package cn.crism.chatme.service;

import cn.crism.chatme.pojo.UserInfo;

/**
 * @CreateDate: 2018/12/25 9:24 AM
 * @Description:
 * @Author: Crism
 */
public interface UserService {

    boolean userNameIsExist(String username);

    UserInfo userInfoIsExist(String username, String password);

    UserInfo saveUser(UserInfo user);

    UserInfo updateUserInfo(UserInfo user);

    UserInfo queryUserInfoByID(String userId);

    Integer preconditionSearchFriend(String myUserId,String friendUserName);

    UserInfo queryUserInfoByUserName(String userName);

    void sendFriendRequest(String myUserId,String friendUserName);
}
